import { store } from "@/store";

export const useSystemStore = defineStore("system", () => {
	const info = uni.getSystemInfoSync();
	const statusBarHeight = ref(info.statusBarHeight);

	return {
		statusBarHeight
	};
});

/**
 * 非setup
 * @returns useSystemStore
 * */
export function useSystemStoreHook() {
	return useSystemStore(store);
}
